package com.shenchuangit.rydemo.web.system.sequence.domain;

import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 序列对象 tm_sequence
 *
 * @author liuyu
 * @date 2021-06-10
 */
public class Sequence extends BaseEntity
        {
private static final long serialVersionUID=1L;

                    /** ID */
                    private Long id;

                        /** 序列名称 */
                                                                                    @Excel(name = "序列名称")
                                        private String seqName;

                        /** 序列当前值 */
                                                                                    @Excel(name = "序列当前值")
                                        private Long currentValue;

                        /** 序列最大值（不填为数据类型的最大值） */
                                                                @Excel(name = "序列最大值", readConverterExp = "不=填为数据类型的最大值")
                        private Long seqMax;

                        /** 0:默认不循环, 1:循环 */
                                                                                    @Excel(name = "0:默认不循环, 1:循环")
                                        private Integer cycle;

                        /** 增量（默认1） */
                                                                @Excel(name = "增量", readConverterExp = "默=认1")
                        private Integer increment;

                                public void setId(Long id)
            {
            this.id = id;
            }

    public Long getId()
            {
            return id;
            }
                            public void setSeqName(String seqName)
            {
            this.seqName = seqName;
            }

    public String getSeqName()
            {
            return seqName;
            }
                            public void setCurrentValue(Long currentValue)
            {
            this.currentValue = currentValue;
            }

    public Long getCurrentValue()
            {
            return currentValue;
            }
                            public void setSeqMax(Long seqMax)
            {
            this.seqMax = seqMax;
            }

    public Long getSeqMax()
            {
            return seqMax;
            }
                            public void setCycle(Integer cycle)
            {
            this.cycle = cycle;
            }

    public Integer getCycle()
            {
            return cycle;
            }
                            public void setIncrement(Integer increment)
            {
            this.increment = increment;
            }

    public Integer getIncrement()
            {
            return increment;
            }
        
@Override
public String toString(){
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
                                .append("id",getId())
                                .append("seqName",getSeqName())
                                .append("currentValue",getCurrentValue())
                                .append("seqMax",getSeqMax())
                                .append("cycle",getCycle())
                                .append("increment",getIncrement())
                                .append("remark",getRemark())
            .toString();
        }
        }
